require "skit/amqp/version"

# TODO: refactor after daemon-kit releases kennethkalmer/daemon-kit#84
module Skit
  module AMQP
    autoload :Runner, 'skit/amqp/runner'

    class << self
      @instance = nil

      def instance
        @instance ||= Runner.new
      end

      def run(&block)
        instance.run(&block)
      end
    end
  end
end
